#include <QCoreApplication>
#include <QThread>
#include "rtspserver1.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QThread *rtspThread = new QThread();
    RtspServer1 *server = new RtspServer1();
    server->moveToThread(rtspThread);
    QObject::connect(rtspThread, &QThread::destroyed, server, &QObject::deleteLater);
    QObject::connect(rtspThread, &QThread::started, server, &RtspServer1::start);
    rtspThread->start();

    return a.exec();
}
